package me.idashu.attg.service;

import me.idashu.attg.domain.SpreadEntity;
import me.idashu.attg.persistence.SpreadMapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SpreadService {
  
	@Autowired
	private SpreadMapper spreadMapper;
	
	
	public void insert(SpreadEntity spreadEntity){
		spreadMapper.insertSpread(spreadEntity);
	}
	
	public int select(SpreadEntity spreadEntity){
		return spreadMapper.selectSpread(spreadEntity);
	}
}
